package com.summer.common.exceptionHandler.myException;


// TODO 可为每一个业务创建一个异常类，用于处理各种业务异常
public class CategoryServiceException extends RuntimeException{
    private String ErrorMsg;

    @Override
    public String getMessage() {
        return ErrorMsg;
    }

    public CategoryServiceException(String ErrorMsg){
        this.ErrorMsg = ErrorMsg;
    }

    public String getDeleteErrorMsg() {
        return ErrorMsg;
    }

    public void setDeleteErrorMsg(String ErrorMsg) {
        this.ErrorMsg = ErrorMsg;
    }
}
